package com.zshan.clinic.database.model;

import java.io.Serializable;
import java.util.Date;

/**
 * 穴位常量
 */
public class DictAcupoint implements Serializable {
    /** 穴位编码;ty */
    private String acupointCode;

    /** 穴位名称;太阳穴 */
    private String acupointText;

    /** 首字母缩写;TYX */
    private String acupointPinyin;

    /** 穴位类型;1经脉2穴位 */
    private String acupointType;

    /** 位置类型;1穴位2部位 */
    private String locationType;

    /** 穴位侧别类型;单/双/左/右/- */
    private String sideType;

    /** 父编码;父编码 */
    private String parentCode;

    /** 排序号 */
    private Integer sortNum;

    /** 启用状态;启用状态 */
    private String isEnabled;

    /** 删除标识 */
    private String isDelete;

    private Long createUserId;

    /** 创建人 */
    private String createBy;

    /** 创建时间 */
    private Date createTime;

    private Long updateUserId;

    /** 更新人 */
    private String updateBy;

    /** 更新时间 */
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public String getAcupointCode() {
        return acupointCode;
    }

    public void setAcupointCode(String acupointCode) {
        this.acupointCode = acupointCode == null ? null : acupointCode.trim();
    }

    public String getAcupointText() {
        return acupointText;
    }

    public void setAcupointText(String acupointText) {
        this.acupointText = acupointText == null ? null : acupointText.trim();
    }

    public String getAcupointPinyin() {
        return acupointPinyin;
    }

    public void setAcupointPinyin(String acupointPinyin) {
        this.acupointPinyin = acupointPinyin == null ? null : acupointPinyin.trim();
    }

    public String getAcupointType() {
        return acupointType;
    }

    public void setAcupointType(String acupointType) {
        this.acupointType = acupointType == null ? null : acupointType.trim();
    }

    public String getLocationType() {
        return locationType;
    }

    public void setLocationType(String locationType) {
        this.locationType = locationType == null ? null : locationType.trim();
    }

    public String getSideType() {
        return sideType;
    }

    public void setSideType(String sideType) {
        this.sideType = sideType == null ? null : sideType.trim();
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode == null ? null : parentCode.trim();
    }

    public Integer getSortNum() {
        return sortNum;
    }

    public void setSortNum(Integer sortNum) {
        this.sortNum = sortNum;
    }

    public String getIsEnabled() {
        return isEnabled;
    }

    public void setIsEnabled(String isEnabled) {
        this.isEnabled = isEnabled == null ? null : isEnabled.trim();
    }

    public String getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(String isDelete) {
        this.isDelete = isDelete == null ? null : isDelete.trim();
    }

    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy == null ? null : createBy.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(Long updateUserId) {
        this.updateUserId = updateUserId;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy == null ? null : updateBy.trim();
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DictAcupoint other = (DictAcupoint) that;
        return (this.getAcupointCode() == null ? other.getAcupointCode() == null : this.getAcupointCode().equals(other.getAcupointCode()))
            && (this.getAcupointText() == null ? other.getAcupointText() == null : this.getAcupointText().equals(other.getAcupointText()))
            && (this.getAcupointPinyin() == null ? other.getAcupointPinyin() == null : this.getAcupointPinyin().equals(other.getAcupointPinyin()))
            && (this.getAcupointType() == null ? other.getAcupointType() == null : this.getAcupointType().equals(other.getAcupointType()))
            && (this.getLocationType() == null ? other.getLocationType() == null : this.getLocationType().equals(other.getLocationType()))
            && (this.getSideType() == null ? other.getSideType() == null : this.getSideType().equals(other.getSideType()))
            && (this.getParentCode() == null ? other.getParentCode() == null : this.getParentCode().equals(other.getParentCode()))
            && (this.getSortNum() == null ? other.getSortNum() == null : this.getSortNum().equals(other.getSortNum()))
            && (this.getIsEnabled() == null ? other.getIsEnabled() == null : this.getIsEnabled().equals(other.getIsEnabled()))
            && (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()))
            && (this.getCreateUserId() == null ? other.getCreateUserId() == null : this.getCreateUserId().equals(other.getCreateUserId()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateUserId() == null ? other.getUpdateUserId() == null : this.getUpdateUserId().equals(other.getUpdateUserId()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAcupointCode() == null) ? 0 : getAcupointCode().hashCode());
        result = prime * result + ((getAcupointText() == null) ? 0 : getAcupointText().hashCode());
        result = prime * result + ((getAcupointPinyin() == null) ? 0 : getAcupointPinyin().hashCode());
        result = prime * result + ((getAcupointType() == null) ? 0 : getAcupointType().hashCode());
        result = prime * result + ((getLocationType() == null) ? 0 : getLocationType().hashCode());
        result = prime * result + ((getSideType() == null) ? 0 : getSideType().hashCode());
        result = prime * result + ((getParentCode() == null) ? 0 : getParentCode().hashCode());
        result = prime * result + ((getSortNum() == null) ? 0 : getSortNum().hashCode());
        result = prime * result + ((getIsEnabled() == null) ? 0 : getIsEnabled().hashCode());
        result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
        result = prime * result + ((getCreateUserId() == null) ? 0 : getCreateUserId().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateUserId() == null) ? 0 : getUpdateUserId().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", acupointCode=").append(acupointCode);
        sb.append(", acupointText=").append(acupointText);
        sb.append(", acupointPinyin=").append(acupointPinyin);
        sb.append(", acupointType=").append(acupointType);
        sb.append(", locationType=").append(locationType);
        sb.append(", sideType=").append(sideType);
        sb.append(", parentCode=").append(parentCode);
        sb.append(", sortNum=").append(sortNum);
        sb.append(", isEnabled=").append(isEnabled);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", createUserId=").append(createUserId);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateUserId=").append(updateUserId);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}